import request from '@/utils/request'

/* 根据id查询客户*/
export function customer_detail(data) {
  return request({
    url: '/base-data/customer/' + data,
    method: 'post'
  })
}

/* 列表分页*/
export function customer_page(data) {
  return request({
    url: '/base-data/customer/page',
    method: 'post',
    data: data
  })
}

/* 列表查询*/
export function customer_list(data) {
  return request({
    url: '/base-data/customer/list',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function customer_save(data) {
  return request({
    url: '/base-data/customer/save',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function customer_update(data) {
  return request({
    url: '/base-data/customer/update',
    method: 'post',
    data: data
  })
}

/* 删除*/
export function customer_delete(data) {
  return request({
    url: '/base-data/customer/delete',
    method: 'post',
    data: data
  })
}
